<?php


namespace App\Services\Game;


use App\DTOS\Admin\BossDTO;
use App\Models\Game\Boss;

class BossService
{

    public function paginate(BossDTO $DTO){

        $model = Boss::query();
        $pageSize = $DTO->getLimit();
        $page = $DTO->getPage();

        return $model->orderByDesc('id')->paginate($pageSize,'*','page',$page);
    }

}
